<template>
  <a-card size="small" :bordered="false">
    <a-spin size="large" :spinning="spinning">
      <dynamic-link :path="path" :formData="formData"></dynamic-link>
    </a-spin>
  </a-card>
</template>
<script >
import DynamicLink from '@/views/modules/task/form/DynamicLink.vue'
export default {
  name: 'OnlineIframe',
  data() {
    return {
      spinning: false,
      tableName:'',
      dataId:'',
      path: 'modules/task/form/OnlineFormDetail' // online表单地址
    }
  },
  components: {
    DynamicLink
  },
  computed: {
    formData() {
      return {
        tableName:this.tableName,
        dataId:this.dataId
      }
    }
  },
  mounted() {
    this.tableName = this.$route.query.tableName
    this.dataId = this.$route.query.dataId
  }
}
</script>
<style lang='scss'>
</style>
